package java_class_work.week04.rectDemo;

/**
 * @Author Tiam
 * @Date 2022/10/3 21:57
 * @Description:
 */
public class Rect {
    double width=10.0, height=10.0, area;

    public Rect() {
    }

    public Rect(double width, double height) {
        this.width = width;
        this.height = height;
    }

    public double getArea() {
        area = width * height;
        return area;
    }
}
